package com.gwtsz.chart.data;

import com.gwtsz.chart.interfaces.datasets.ICandleDataSet;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by spence on 17-3-23.
 */

public class StickData extends BarLineScatterCandleBubbleData<ICandleDataSet>{

  public StickData() {
    super();
  }

  public StickData(List<String> xVals) {
    super(xVals);
  }

  public StickData(String[] xVals) {
    super(xVals);
  }

  public StickData(List<String> xVals, List<ICandleDataSet> dataSets) {
    super(xVals, dataSets);
  }

  public StickData(String[] xVals, List<ICandleDataSet> dataSets) {
    super(xVals, dataSets);
  }

  public StickData(List<String> xVals, ICandleDataSet dataSet) {
    super(xVals, toList(dataSet));
  }

  public StickData(String[] xVals, ICandleDataSet dataSet) {
    super(xVals, toList(dataSet));
  }

  private static List<ICandleDataSet> toList(ICandleDataSet dataSet) {
    List<ICandleDataSet> sets = new ArrayList<>();
    sets.add(dataSet);
    return sets;
  }


}
